// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Tebs from './utils/v-tebs'
import map from './utils/v-map'
import echarts from 'echarts'
import store from './store/index'

import './assets/style.css'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueWordcloud from 'vue-b2wordcloud'
import VueAMap  from 'vue-amap';  //注意不要和 AMap原始名称覆盖
Vue.use(VueAMap);
// 初始化vue-amap
VueAMap.initAMapApiLoader({
  // 高德的key
  key: '323f9cf4407f154fe227a648650af339',
  // 插件集合
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor','AMap.Geolocation'],
  v: '1.4.4'
     
});
Vue.use(VueWordcloud)
Vue.use(ElementUI);

Vue.prototype.$echarts = echarts
Vue.config.productionTip = false

Vue.use(Tebs)
Vue.use(map)



/* eslint-disable no-new */
import { login } from './utils/api'
login('username=api-dazhouzhen&password=e10adc3949ba59abbe56e057f20f883e').then(res => {
  if (res.data.status === 200) {
    new Vue({
      el: '#app',
      router,
      store,
      components: { App },
      template: '<App/>'
    })


  }
})

